import { IsDateString, IsOptional, IsString } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class QueryReportRecordDto {
  @ApiProperty()
  @IsDateString()
  startDate: Date;
  @ApiProperty()
  @IsDateString()
  endDate: Date;

  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  worker: string;
  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  group: string;
}
